<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\search\VenueSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '场地管理';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="goods-index box">

    <div class="box-header with-border">
        <?= Html::a('创建场地', ['create'], ['class' => 'btn btn-primary']) ?>
    </div>

    <?= GridView::widget([
        'options' => ['class'=>'box-body'],
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'category.cate_name',
            'hotel.name',
            'name',
            // 'content:ntext',
            // 'thumb',
            // 'price',
            // 'view',
            // 'scheduled',
            // 'accommodate',
            // 'acreage',
            // 'size:ntext',
            // 'created_at',
            // 'updated_at',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
